package com.xiaoming.tranAnno.dao;

import com.xiaoming.tranAnno.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from anno_test where id = #{id}")
    List<User> getUserById(Integer id);

    @Insert("insert into anno_test values(#{id},#{name})")
    Integer saveUser(User user);
}
